package com.rew.canteenbox.enumerate;

/**
 * 枚举类定义.
 *
 * Created by HuiWen Ren on 2016/12/1.
 */
public enum ResultTypeEnum {

    SUCCESS(1, "成功"),
    FAILED(0, "失败"),
    NOT_EXIST(2, "不存在"),
    DUPLICATE(3, "重复"),
    PSD_WRONG(4, "密码错误");

    private final Integer value;
    private final String description;

    ResultTypeEnum(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

    public Integer getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }
}
